from django.db import models


class User(models.Model):
    username = models.CharField(max_length=24, null=False)
    password = models.CharField(max_length=24, null=False)

    def __str__(self):
        return self.username


class Stu(models.Model):
    name = models.CharField(max_length=32, )
    sex = models.CharField(max_length=32)
    xueyaun = models.CharField(max_length=32)
    clas = models.CharField(max_length=32)
    zhiwu = models.CharField(max_length=32)
    tpl = models.CharField(max_length=32)
    b_time = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name
